package com.miaosha.miaosha.config;


import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class JedisPoolUtils {
    private static JedisPool getJedisPool(){
        return new JedisPool("192.168.0.114",6379);
    }
    public synchronized static Jedis getJedis(){
        return getJedisPool().getResource();
    }
}
